//
//  UserAboutUsViewController.m
//  HuLaQuan
//
//  Created by hok on 1/15/16.
//  Copyright © 2016 Jianghao. All rights reserved.
//

#import "UserAboutUsViewController.h"

@interface UserAboutUsViewController ()

@property (weak, nonatomic) IBOutlet UIWebView *webView;

@end

@implementation UserAboutUsViewController


- (void)setupUI
{
    //   // self.feedbackInput.layer.borderColor = [UIColorFromRGBA(0x438036, 1.0) CGColor];
    //    self.feedbackInput.layer.borderWidth = 1.0f;
    //    self.feedbackInput.layer.cornerRadius = 6.0f;
    
    NSURL *url = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"about_us" ofType:@"html"]];
    [self.webView loadRequest:[NSURLRequest requestWithURL:url]];
    
    //  [self.webView loadRequest:request];
    self.webView.backgroundColor = [UIColor whiteColor];

    
    self.title = @"关于我们";
    
    
    [self setupNavBackButton];
    

    
    
}


- (void)viewDidLayoutSubviews
{
    CGRect frame = self.view.frame;
    frame.origin.y = 0;
    frame.size.height = CGRectGetHeight(self.webView.frame)+ 100;
    self.webView.frame = frame;
    
}
@end
